/*
 * @Author: licheng licheng@jiuqi.com.cn
 * @Date: 2025-07-24 13:55:08
 * @LastEditors: licheng licheng@jiuqi.com.cn
 * @LastEditTime: 2025-07-25 13:57:15
 * @FilePath: /lure-camera/src/api/shelf.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

const api = {
  shelf: '/lure-camera/dress/pageDress',
  saveOrUpdateDress: '/lure-camera/dress/saveOrUpdateDress'
}

export default api

// {
// 	"description": "",
// 	"label": "",
// 	"name": "",
// 	"pageIndex": 1,
// 	"pageSize": 15,
// 	"sortColumn": "id",
// 	"sortOrder": "desc",
// 	"type": 0
// }

export function getShelfList (parameter) {
  return request({
    url: api.shelf,
    method: 'post',
    data: parameter
  })
}

export function saveOrUpdateDress (formData) {
  return request({
    url: api.saveOrUpdateDress,
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
